#include<stdio.h>
#include<string.h>
#include<ctype.h>

int main()
{
	int sign,flag=0,key=0;
	long n[2]={0},out;
	char c[30]={'\0'},z;
	gets(c);
	for(sign=0;sign<strlen(c);sign++)
	{
		if(isdigit(c[sign]))
		{
			flag=1;
			n[key]=n[key]*10+c[sign]-'0';
		}
		else if(c[sign]==' '&&isdigit(c[sign+1]))
		{
			if(flag==1) key++;
		}
		else z=c[sign];
	}
	switch(z)
	{
		case '+':out=n[0]+n[1];break;
		case '-':out=n[0]-n[1];break;
		case '*':out=n[0]*n[1];break;
		case '/':out=n[0]/n[1];break;
		case '%':out=n[0]%n[1];break;
	}
	printf("%ld",out);
	return 0;
}
